var LearningMapTemplateUtils = {
    findLearningMap: function () {
        return LearningMapTemplateBean;
    },
    findCourse: function () {
        return LearningMapTemplateBean.course;
    },
    findExercise: function (type) {
        for (var i = 0; i < LearningMapTemplateBean.exercises.length; i++) {
            if (LearningMapTemplateBean.exercises[i].type == type) {
                return LearningMapTemplateBean.exercises[i];
            }
        }
        return null;
    }
}